<ion-view view-title="滞销产品" class="unsalablePro">
	<!--不知道什么原因，要加头部才显示标题-->
	<ion-nav-bar>
		<ion-nav-back-button>
		</ion-nav-back-button>
	</ion-nav-bar>
	
	<!-- 侧边菜单 -->
	<ion-side-menus>
		<!-- 中间内容 -->
		<ion-side-menu-content>
			<!--描述：滑动块-->
			<ion-content scroll="false">
				<div class="item padding-0" id="orderBar">
					<div class="row text-center padding-0 font-middle-my">
						<div class="col" on-tap="default_order()" ng-class="{'assertive':order==1}">
							默认排序
						</div>
						<div class="col" on-tap="price_order()" ng-class="{'assertive':order==4||order==5}">
							价格&nbsp;
							<i class="icon ion-ios-arrow-up paixu_top" ng-class="{'font-gray-my':order==4}"></i>
							<i class="icon ion-ios-arrow-down paixu_bottom" ng-class="{'font-gray-my':order==5}"></i>
						</div>
						<div class="col" on-tap="rightSideMenu()">
							筛选<i class="iconfont icon-shaixuan"></i>
						</div>
					</div>
				</div>
				<div class="font-large-my font-gray-my text-center padding" ng-if="listData.data==null">
					<i class="icon ion-sad-outline font-1rem-my"></i> 对不起，没有符合条件的数据.....
				</div>
				
				<ion-scroll direction="y" ng-style="unsalable_myObj">
					<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
					<div class="list left-zhang margin-bottom-10 light-bg padding-5" style="width: 48.5%;" ng-repeat="obj in listData.data" ng-class="{'col-offset-3':$index%2==1}">
						<li class="item item-image" on-tap="onShow_detail(obj.goods_id)">
							<div style="width: 100%;height: 8rem;">
								<img src="{{obj.image?obj.image:noImg}}" style="width: 100%;max-height: 8rem;" />
							</div>
							<p class="font-middle-my">{{obj.name}}</p>
							<h4 class="assertive padding-5">{{obj.price|currency:'¥'}}</h4>
						</li>
						<li class="item item-body font-small-my font-gray-my text-align-my padding-5" style="height:52px;">
							{{obj.introduce|limitTo:25}}<span ng-if="obj.introduce.length>20">...</span>
						</li>
						<li class="item padding-10">
							<button class="button assertive-border button-small font-gray-my" on-tap="onshow_first(obj.store_id)"> 
			          	  		<i class="ion ion-home assertive"></i>{{obj.store_name}}
							</button>
						</li>
					</div>
					<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
				</ion-scroll>
			</ion-content>
		</ion-side-menu-content>

		<!--侧边菜单-->
		<ion-side-menu side="right">
			<ion-content>
				<ul class="list">
					<li class="item item-input">
						<i class="icon ion-search placeholder-icon"></i><input type="text" placeholder="请输入关键字..." ng-model="input.keywords">
					</li>
					<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
							<div class="input-label">大分类</div>
							<div class="input-value" ng-click="doSelectCat1()">{{input.cat1.name}}</div>
						</div>
						<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
							<div class="input-label">中分类</div>
							<div class="input-value" ng-click="doSelectCat2()">{{input.cat2.name}}</div>
						</div>
						<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
							<div class="input-label">小分类</div>
							<div class="input-value" ng-click="doSelectCat3()">{{input.cat3.name}}</div>
						</div>

					<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
							<div class="input-label">省份</div>
							<div class="input-value" ng-click="doSelectProvince()">{{input.province.name}}</div>
						</div>
						<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
							<div class="input-label">城市</div>
							<div class="input-value" ng-click="doSelectCity()">{{input.city.name}}</div>
						</div>
						<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
							<div class="input-label">区/县</div>
							<div class="input-value" ng-click="doSelectDistrict()">{{input.district.name}}</div>
						</div>
				</ul>
				<div class="row">
					<div class="col"><button class="button button-full button-energized" on-tap="rightSideMenu()">取消</button></div>
					<div class="col"><button class="button button-full button-assertive" on-tap="doSearch();rightSideMenu()">确定</button></div>
				</div>
			</ion-content>
		</ion-side-menu>

	</ion-side-menus>
</ion-view>